﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ZH.GPT.Infrastructures.Entities;
using ZH.GPT.Infrastructures.Extension;
using ZH.GPT.Infrastructures.Repositories.Interface;

namespace ZH.GPT.Infrastructures.Repositories
{
    public class ChatRepository : BaseRepository, IChatRepository
    {
        public ChatRepository(IDbContextFactory dbContextFactory) : base(dbContextFactory)
        {
        }

        public async Task<bool> AddChat(Chat chat)
        {
            bool isSucc = await base.AddAsync(chat);
            return isSucc;
        }
    }
}
